package com.shop.shop.controller;

import com.shop.shop.dao.GoodMapper;
import com.shop.shop.model.Good;
import com.shop.shop.service.GoodService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/good")
public class GoodController {
    @Resource
    GoodMapper goodMapper;
    @Resource
    GoodService goodService;
    @RequestMapping("/get")
    public List<Good> getAllData() {
        return goodMapper.getAllData();
    }
}
